package com.lalameow.serverlogingate.repository;

import com.lalameow.serverlogingate.enetiy.PlayerInfo;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

/**
 * Created with IntelliJ IDEA.
 * 创建人: 陈刚
 * 日期: 2018/5/8
 * 时间: 6:31
 * 功能：请进行修改
 */
public interface PlayerInfoRepository  extends CrudRepository<PlayerInfo,String> {

    PlayerInfo findByUserNameAndPassword(@Param("userName") String userName,@Param("password") String password);
    int countByUserName(@Param("userName") String userName);
    int countByPlayerName(@Param("playerName") String playerName);
    PlayerInfo findByPlayerName(@Param("playerName") String playerName);

}
